3v4l.org

run code in 500+ PHP versions simultaneously
<?php $client = (object) ['id' => 1]; $databaseValue = '$client->id'; preg_match_all('/^\$(?:[a-z]||[A-Z])\S+/', $databaseValue, $matches); if (!empty($matches)) { $firstVariableOccurance = current(current($matches)); eval("\$value = {$firstVariableOccurance};"); echo "send command {$value}"; } // it return me ^ "status $client->id", i.e. the variable is not executed

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.0140.00418.92
8.5.20.0110.00621.33
8.5.10.0060.01020.15
8.5.00.0130.00823.05
8.4.180.0150.00922.05
8.4.170.0100.01223.75
8.4.160.0150.00623.77
8.4.150.0080.00517.01
8.4.140.0160.00617.98
8.4.130.0070.00518.14
8.4.120.0070.00822.47
8.4.110.0120.00922.39
8.4.100.0040.00517.96
8.4.90.0080.01022.37
8.4.80.0060.00319.54
8.4.70.0130.00718.23
8.4.60.0100.00618.83
8.4.50.0060.00318.82
8.4.40.0090.00624.06
8.4.30.0100.01020.44
8.4.20.0060.01218.21
8.4.10.0080.01222.20
8.3.300.0100.01120.55
8.3.290.0130.01020.88
8.3.280.0110.01018.66
8.3.270.0130.01116.62
8.3.260.0110.00816.52
8.3.250.0070.01219.05
8.3.240.0070.00416.83
8.3.230.0110.00916.57
8.3.220.0120.00618.86
8.3.210.0100.00418.50
8.3.200.0050.00416.56
8.3.190.0110.00919.00
8.3.180.0110.00916.91
8.3.170.0060.01317.13
8.3.160.0040.00420.23
8.3.150.0100.01018.75
8.3.140.0030.00716.90
8.3.130.0050.00316.83
8.3.120.0060.00919.11
8.3.110.0030.00520.94
8.3.100.0040.00424.06
8.3.90.0030.01326.77
8.3.80.0000.01018.52
8.3.70.0150.00616.75
8.3.60.0070.01016.88
8.3.50.0100.00720.49
8.3.40.0120.00922.08
8.3.30.0040.01118.83
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.300.0160.00618.76
8.2.290.0110.00720.48
8.2.280.0050.00318.79
8.2.270.0160.00319.14
8.2.260.0150.00316.81
8.2.250.0110.00416.82
8.2.240.0070.01117.47
8.2.230.0030.00622.58
8.2.220.0100.00637.54
8.2.210.0120.00926.77
8.2.200.0060.00316.63
8.2.190.0110.00718.55
8.2.180.0080.00825.92
8.2.170.0120.00319.00
8.2.160.0040.01122.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0030.00622.27
8.2.100.0060.00617.89
8.2.90.0050.00317.88
8.2.80.0050.00319.03
8.2.70.0080.00017.75
8.2.60.0000.00917.88
8.2.50.0030.00517.98
8.2.40.0030.00617.91
8.2.30.0070.00017.97
8.2.20.0040.00420.51
8.2.10.0040.00418.10
8.2.00.0050.00319.26
8.1.340.0110.00919.72
8.1.330.0140.00422.09
8.1.320.0090.01016.09
8.1.310.0040.00418.61
8.1.300.0060.00318.34
8.1.290.0070.00330.84
8.1.280.0100.01025.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.80
8.1.230.0080.00319.12
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0000.00818.84
8.1.150.0080.00018.75
8.1.140.0040.00417.66
8.1.130.0060.00318.91
8.1.120.0050.00217.51
8.1.110.0040.00417.61
8.1.100.0100.00017.65
8.1.90.0030.00517.62
8.1.80.0090.00517.59
8.1.70.0080.00817.62
8.1.60.0150.00317.64
8.1.50.0120.00317.66
8.1.40.0140.00317.55
8.1.30.0140.00317.65
8.1.20.0110.00617.80
8.1.10.0120.00517.71
8.1.00.0160.00217.65
8.0.300.0040.00419.81
8.0.290.0080.00017.00
8.0.280.0030.00318.48
8.0.270.0040.00416.97
8.0.260.0030.00318.47
8.0.250.0020.00517.07
8.0.240.0000.00717.04
8.0.230.0030.00717.17
8.0.220.0050.00217.09
8.0.210.0140.00016.90
8.0.200.0100.00517.11
8.0.190.0110.00416.95
8.0.180.0150.00016.95
8.0.170.0070.00717.11
8.0.160.0090.00616.87
8.0.150.0040.01217.05
8.0.140.0090.00616.87
8.0.130.0080.00616.94
8.0.120.0120.00317.03
8.0.110.0100.00517.02
8.0.100.0080.00816.92
8.0.90.0130.00217.05
8.0.80.0120.00417.04
8.0.70.0110.00417.07
8.0.60.0130.00316.83
8.0.50.0040.00616.90
8.0.30.0040.00817.04
8.0.20.0060.00517.13
8.0.10.0070.00717.04
7.4.330.0000.00415.55
7.4.320.0030.00316.86
7.4.300.0110.00716.65
7.4.290.0100.00516.59
7.4.280.0130.00316.59
7.4.270.0130.00016.71
7.4.260.0130.00416.64
7.4.250.0120.00516.69
7.4.240.0170.00016.59
7.4.230.0080.00816.64
7.4.220.0090.00616.75
7.4.210.0140.00016.60
7.4.200.0100.00516.61
7.4.190.0130.00016.85
7.4.180.0050.00916.77
7.4.160.0100.00516.78
7.4.150.0050.01016.64
7.4.140.0030.00916.57
7.4.130.0100.00016.51
7.4.120.0080.00416.34
7.4.110.0070.00316.57
7.4.100.0040.00816.59
7.4.90.0060.00716.64
7.4.80.0100.00316.70
7.4.70.0050.00516.52
7.4.60.0070.00416.36
7.4.50.0040.00716.59
7.4.40.0070.00416.39
7.4.30.0100.00016.73
7.4.20.0050.00516.44
7.4.10.0080.00016.33
7.4.00.0050.00516.61

preferences:
45.1 ms | 1240 KiB | 5 Q