3v4l.org

run code in 500+ PHP versions simultaneously
<?php $client = (object) ['id' => 1]; $databaseValue = '$client->id $test'; preg_match_all('/^\$(?:[a-z]||[A-Z])\S+/', $databaseValue, $matches); if (!empty($matches)) { $firstVariableOccurance = current(current($matches)); eval("\$value = {$firstVariableOccurance};"); echo "Send command {$value}"; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.30.0070.01020.54
8.5.20.0090.00821.19
8.5.10.0090.00820.05
8.5.00.0090.01222.90
8.4.180.0130.00919.78
8.4.170.0140.00923.88
8.4.160.0140.01020.68
8.4.150.0090.00316.92
8.4.140.0090.00517.96
8.4.130.0100.00418.56
8.4.120.0080.01118.93
8.4.110.0170.00518.73
8.4.100.0140.00618.09
8.4.90.0120.00820.63
8.4.80.0100.00718.98
8.4.70.0030.00618.74
8.4.60.0110.00320.55
8.4.50.0100.01120.32
8.4.40.0100.01023.84
8.4.30.0060.00920.62
8.4.20.0170.00317.98
8.4.10.0040.01621.79
8.3.300.0110.00918.66
8.3.290.0110.00920.94
8.3.280.0120.00818.82
8.3.270.0100.01116.79
8.3.260.0130.00616.89
8.3.250.0120.00816.74
8.3.240.0110.00817.02
8.3.230.0150.00516.83
8.3.220.0030.00418.97
8.3.210.0120.00916.91
8.3.200.0070.00416.81
8.3.190.0100.00817.24
8.3.180.0110.00816.67
8.3.170.0160.00317.30
8.3.160.0110.00718.34
8.3.150.0150.00320.80
8.3.140.0050.00318.99
8.3.130.0060.00318.48
8.3.120.0000.01619.22
8.3.110.0130.00620.94
8.3.100.0040.00424.06
8.3.90.0110.00426.77
8.3.80.0030.00718.43
8.3.70.0110.01118.68
8.3.60.0120.00417.00
8.3.50.0060.01220.49
8.3.40.0070.00721.64
8.3.30.0110.00419.14
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.300.0110.01018.24
8.2.290.0120.00717.48
8.2.280.0140.00420.77
8.2.270.0150.00317.20
8.2.260.0090.00916.82
8.2.250.0000.00818.43
8.2.240.0030.00619.05
8.2.230.0050.00322.58
8.2.220.0030.00637.54
8.2.210.0130.00626.77
8.2.200.0030.00617.00
8.2.190.0140.00418.66
8.2.180.0130.00325.92
8.2.170.0090.00619.27
8.2.160.0140.00022.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0090.00022.42
8.2.100.0040.00817.97
8.2.90.0040.00418.09
8.2.80.0040.00419.03
8.2.70.0040.00417.75
8.2.60.0080.00017.75
8.2.50.0050.00317.98
8.2.40.0080.00018.16
8.2.30.0030.00618.05
8.2.20.0060.00322.26
8.2.10.0040.00418.04
8.2.00.0050.00319.30
8.1.340.0100.00817.96
8.1.330.0080.01218.71
8.1.320.0090.01016.34
8.1.310.0080.00016.67
8.1.300.0040.01218.27
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0030.00523.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.06
8.1.230.0070.00320.98
8.1.220.0050.00317.79
8.1.210.0030.00518.79
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0070.00317.62
8.1.160.0070.00018.77
8.1.150.0000.00718.71
8.1.140.0060.00317.53
8.1.130.0070.00017.51
8.1.120.0000.00717.66
8.1.110.0070.00017.56
8.1.100.0020.00817.66
8.1.90.0040.00417.67
8.1.80.0050.00917.50
8.1.70.0100.00517.44
8.1.60.0070.01117.69
8.1.50.0110.00417.64
8.1.40.0140.00317.56
8.1.30.0130.00317.69
8.1.20.0140.00317.79
8.1.10.0150.00317.56
8.1.00.0080.00917.61
8.0.300.0040.00420.09
8.0.290.0040.00416.71
8.0.280.0030.00318.45
8.0.270.0040.00417.09
8.0.260.0030.00317.05
8.0.250.0030.00317.14
8.0.240.0030.00317.05
8.0.230.0040.00417.11
8.0.220.0030.00317.10
8.0.210.0090.00416.95
8.0.200.0150.00017.14
8.0.190.0040.01117.06
8.0.180.0090.00616.96
8.0.170.0000.01417.09
8.0.160.0150.00016.90
8.0.150.0140.00217.07
8.0.140.0150.00016.94
8.0.130.0070.00716.99
8.0.120.0070.00717.03
8.0.110.0130.00217.07
8.0.100.0050.01017.07
8.0.90.0090.00517.09
8.0.80.0090.00516.96
8.0.70.0100.00217.03
8.0.60.0130.00017.09
8.0.50.0090.00317.04
8.0.30.0050.00817.04
8.0.20.0120.00017.18
8.0.10.0140.00017.16
7.4.330.0000.00515.55
7.4.320.0000.00616.74
7.4.300.0120.00616.74
7.4.290.0130.00316.78
7.4.280.0040.01216.77
7.4.270.0110.00516.68
7.4.260.0070.01016.77
7.4.250.0100.00616.73
7.4.240.0090.00616.65
7.4.230.0130.00216.80
7.4.220.0100.00416.66
7.4.210.0040.00916.66
7.4.200.0110.00316.66
7.4.190.0110.00316.72
7.4.180.0050.00516.79
7.4.160.0110.00016.79
7.4.150.0030.00916.63
7.4.140.0120.00016.55
7.4.130.0080.00316.45
7.4.120.0120.00016.54
7.4.110.0060.00316.47
7.4.100.0100.00016.61
7.4.90.0120.00016.55
7.4.80.0130.00016.52
7.4.70.0030.00616.50
7.4.60.0080.00016.48
7.4.50.0000.00816.59
7.4.40.0070.00016.51
7.4.30.0000.00716.73
7.4.20.0000.00716.59
7.4.10.0050.00216.62
7.4.00.0030.00316.62

preferences:
46.76 ms | 1233 KiB | 5 Q